package edu.bit.water.dao;

import edu.bit.water.entity.MetaTI;
import edu.bit.water.entity.MetaTI;
import edu.bit.water.entity.TechnicalIndicator;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MetaTIDao {
    int insertMetaTI(MetaTI MetaTI) throws DataIntegrityViolationException;
    int insertMetaTINote(MetaTI metaTI) throws DataIntegrityViolationException;
    Integer getMaxId();
    Integer getMaxId1();
    int deleteMetaTINote(@Param("id") int id);
    int updateMetaTINote(MetaTI metaTI);
    int deleteMetaTI(@Param("id") int id);
    int updateMetaTI(MetaTI MetaTI);
    List<MetaTI> selectMetaTI(String stNumber);
    List<MetaTI> selectMetaTINote(String stNumber);
    //级联删除technical_indicator_table
    int technicalDelete(String assessmentContent, String standardNumber);
    //级联标记technical_indicator_table
    int technicalUpdate(TechnicalIndicator technicalIndicator);
}